<%@ page language="Java" import="java.util.*,descriptor.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%
	CompanySupsListDescriptor compSupList = (CompanySupsListDescriptor)request.getAttribute("compSupList");
	RecruiterDescriptor recruiter = (RecruiterDescriptor)request.getAttribute("recruiter");
	if(recruiter == null){
		response.sendRedirect("index.jsp");
	}

%>
<html>
	<jsp:include page="recruiterHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Recruiter" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu2'));">
		<jsp:include page="recruiterPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="recruiterMenu.jsp" ></jsp:include>
			<div id="content">
			<h3 class="posttitle">Add a public offer</h3>
				<div class="entry">
				
<form action="RecruiterServlet?page=addPublicOfferDone" method="post">

Title of the offer :
<input type="text" name="title" /><br/>
Start the : 
    <input type="text" id="calendar" name="calendar1" />
    <button id="trigger">Choose the date</button>
    <script type="text/javascript">//<![CDATA[
      Zapatec.Calendar.setup({
        firstDay          : 1,
        range             : [2007.01, 2999.12],
        electric          : false,
        inputField        : "calendar",
        button            : "trigger",
        ifFormat          : "%A, %B %d, %Y",
        daFormat          : "%Y/%m/%d"
      });
    //]]></script>

<br/>
Finish the:

    <input type="text" id="calendar2" name="calendar2" />
    <button id="trigger2">Choose the date</button>
    <script type="text/javascript">//<![CDATA[
      Zapatec.Calendar.setup({
        firstDay          : 1,
        range             : [2007.01, 2999.12],
        electric          : false,
        inputField        : "calendar2",
        button            : "trigger2",
        ifFormat          : "%A, %B %d, %Y",
        daFormat          : "%Y/%m/%d"
      });
    //]]></script>
<br/>

Choose the CompanySupervisor :
<select name="companySup">
<%
for (CompanySupDescriptor compSup : compSupList.getCompanySupDescriptors()){
%>
<option value ="<%=compSup.getUserId()%>"><%=compSup.getFirstName()%> <%=compSup.getName()%></option>
<%
}
%>
</select>

<br/><br/>
Description:<br/>
<textarea name="description" rows="20" cols="80">
Enter the description here
</textarea><br/>
<button name="Send" type="submit"/>Send</button>
</form>


				</div>
	    	</div>
			<jsp:include page="recruiterPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>